from celery import Celery
import os

app = Celery('insightface_celery')
app.config_from_object('celerytask.celeryconfig')

# 自动发现任务
app.autodiscover_tasks(['celerytask.tasks'], force=True)
app.autodiscover_tasks(['workflows.workflows_base'], force=True)
